Offers utility functions to help with the enumeration support. More...
Static Public Member Functions | |
static nkMemory::StringView | enumToString (COMPLEX_EFFECT_TYPE value) |
static COMPLEX_EFFECT_TYPE | stringToEnum (nkMemory::StringView value) |
Offers utility functions to help with the enumeration support.
|
static |
Translates an enum value to a string. Values supported are :
Enum value | String value |
---|---|
COMPLEX_EFFECT_TYPE::UNKNOWN | 'UNKNOWN' |
COMPLEX_EFFECT_TYPE::BLUR | 'BLUR' |
COMPLEX_EFFECT_TYPE::DOF | 'DOF' |
value | The enumeration value to convert. |
|
static |
Translates a string to its enum value.
String value | Enum value |
---|---|
'BLUR' | COMPLEX_EFFECT_TYPE::BLUR |
'DOF' | COMPLEX_EFFECT_TYPE::DOF |
'UNKNOWN' / Anything else | COMPLEX_EFFECT_TYPE::UNKNOWN' |
value | The string to convert. |